home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_11_01 / 1101014b < prev    next >
Text File  |  1992-11-07  |  264b  |  16 lines

  1. /* time function -- UNIX version */
  2. #include <time.h>
  3.  
  4.         /* UNIX system call */
  5. time_t _Time(time_t *);
  6.  
  7. time_t (time)(time_t *tod)
  8.     {    /* return calendar time */
  9.     time_t t = _Time(NULL) + (70*365LU+17)*86400;
  10.  
  11.     if (tod)
  12.         *tod = t;
  13.     return (t);
  14.     }
  15.  
  16.